import { get, post } from "../request";

const devLedger = {
  queryByPage(pageDto) {
    return post("/devLedger/queryByPage", pageDto);
  },
  add(devLedgerList) {
    return post("/devLedger/add", devLedgerList);
  },
  addOne(devLedger) {
    return post("/devLedger/addOne", devLedger);
  },
  edit(devLedger) {
    return post("/devLedger/edit", devLedger);
  },
  deleteById(id) {
    return get("/devLedger/deleteById", id);
  },
  queryViewsByPage(pageDto) {
    return post("/devLedger/queryViewsByPage", pageDto);
  },
  queryCardById(ledId) {
    return get("/devLedger/queryCardById", ledId);
  },
  getById(id) {
    return get("/devLedger/queryById", id);
  },
  queryLatestLedgerId(deviceId) {
    return get("/devLedger/queryLatestLedgerId", deviceId);
  },
};

export default devLedger;
